//
//  AppError.h
//  XiaoMiao
//
//  Created by 23 on 2017/11/5.
//  Copyright © 2017年 smallyou. All rights reserved.
//

#import <Foundation/Foundation.h>

/**错误域*/
extern NSString * const AppNetworkErrorDomain;

@interface AppError : NSError

@property (nonatomic,strong) NSDictionary * response;


// 业务错误构建
+ (instancetype)errorWithCode:(NSInteger)errCode errMessage:(NSString *)errMessage;

// 兼容系统错误
+ (instancetype)errorWithNSError:(NSError *)error;

// 错误信息提示语，跟业务相关
- (NSString *)errorMessage;



@end
